package com.choosefine.base.shixiaobao.common.conf;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * 注入校验器
 * 
 * Author：liaozhanggen
 * Create Date：2017年3月23日
 * Version：v2.0
 */
@Configuration
@EnableAutoConfiguration
public class ValidationFactoryConfig {

	final static Logger logger = LoggerFactory.getLogger(ValidationFactoryConfig.class);

	@Bean
	public MethodValidationPostProcessor methodValidationPostProcessor() {
		return new MethodValidationPostProcessor();
	}

}